
import { consultAndServiceList, consultAndServiceDetail } from '@/api/consultAndService/consultAndService.js'

const consultAndService = {
    mutations: {

    },

    actions: {
        //获取咨询服务列表
        ConsultAndServiceList({ commit }, type) {
            return new Promise((resolve, reject) => {
                consultAndServiceList({ type }).then(res => {
                    resolve(res)
                }).catch(error => {
                    reject(error)
                })
            })
        },
        //获取咨询服务详情
        ConsultAndServiceDetail({ commit }, id) {
            return new Promise((resolve, reject) => {
                consultAndServiceDetail({ id }).then(res => {
                    resolve(res)
                }).catch(error => {
                    reject(error)
                })
            })
        }
    }
}

export default consultAndService
